package com.matt.domain.courseV2;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 课程包
 * 例如：一年级语文，售价 199 元。
 */
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
@Table(name = "tc_course_package_v2")
public class CoursePackageV2 extends Domain implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 课程包名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 封面
     */
    @Column(name = "cover")
    private String cover;

    /**
     * 课程包描述
     */
    @Column(name = "description")
    private String desc;


    /**
     * 标签
     */
    @Column(name = "tags")
    private String tags;

    @Column(columnDefinition = "int default 0   COMMENT '0托班1早教' ")
    private Integer type = 0;

    @Column(columnDefinition = "varchar(32)  default '0'   COMMENT '父级ID' ")
    private String parentId = "0";

    @Column(columnDefinition = "varchar(32)  COMMENT '创建人'")
    private String createdBy;

    @Column(columnDefinition = "varchar(255)  COMMENT '创建人名称'")
    private String createdName;

    @Column(columnDefinition = "varchar(255)  COMMENT '类型名称'")
    private String typeName;

    @Column(columnDefinition = "int default 0   COMMENT '显示顺序' ")
    private Integer orderNum;

}
